package com.lsu.app.service;

import com.lsu.app.bean.Praise;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *
 * @description 针对表【praise(点赞表)】的数据库操作Service
 * @Date 2023-10-27 11:01:29
 * @author hjj
 */

public interface PraiseService extends IService<Praise> {

    Praise getOneByUserIdAndTypeAndTargetId(Integer userId,Integer type,Integer targetId);
    Integer getNumByTypeAndTargetId(Integer type, Integer targetId);

    Integer getSelfLike(Integer targetId,Integer type);
}
